package com.hub.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hub.dto.SearchUserModel;
import com.hub.entity.UserInfoEntity;
import com.hub.model.UserModel;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<UserInfoEntity> {
    /**
     * 登录
     * @param model
     * @return
     */
    UserModel doUserLogin(SearchUserModel model);

    /**
     * 查询用户部门
     * @param deptId
     * @return
     */
    String getUserDeptName(int deptId);
}
